package com.demo.core;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;



/**
 * 定时器
 */
@Configuration
@Slf4j
@EnableScheduling
@Service("timer")
public class Timer {

    @Scheduled(fixedRate = 1000 * 120)
    public void synOrderDelay() {
        log.info("这里是定时器");
    }
}
